post /vms/{vmId}/operations/preparetodetach

Prepare To Detach (prepareToDetach)

After the VM is "Fully Cached" and you want to start the detach process, the first task required is "Prepare to detach" the VM from Velostrata. This task takes the VM disks from the Velostrata cache and object store and creates the native data drives in the cloud. A Velostrata exporter is deployed automatically in the cloud to perform this task. The exporter runs through all data disks and converts them to native cloud disks, after this first iteration is completed, the exporter continues to write the changes committed since its previous execution. This task runs in cycles. After sufficient progress has been achieved (3 cycles), the VM is marked as "Ready to Detach". The VM can then be detached from Velostrata in minutes. The Velostrata exporter continues to synchronize the VM disks from cache into the drives, until detached or until manually stopped (stop prepare to detach). Once the VM is in the "Ready to Detach" state you will effectively have to "cut over" and will need to schedule a downtime slot for the actual detach action. The VM must be in the Fully Cached state prior to running the prepare to detach operation. If the VM is not in the Fully Cached state, first run the procedure to migrate the VM storage to the cloud. Note - If you want to stop (revert back) after the preparing to detach process has finished, you can stop or rollback the detach process.

Path parameters

vmId (required)

Path Parameter — Virtual machine ID

Consumes

This API call consumes the following media types via the Content-Type request header:

  • application/json

Request body

storageSpec TargetStorageSpec (required)

Body Parameter — Storage Specifications

targetStorageSpec (optional)

TargetStorageSpec

_type

String GCP

Enum:

GcpTargetStorageSpec

TargetStorageSpec

storageType

String GCP target storage

Return type

TaskId

value (optional)

String Entity ID

_type

String Task ID

TaskId

 

 

Example data

Content-Type: application/json

{

"storageType": "standard",

"_type": "GcpTargetStorageSpec"

}

 

 

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

  • application/json

Responses

201

Created TaskId

Default

Error ErrorInfo

errorCode (optional)

String

url(optional)

String

message (optional)

String